﻿// ClientProj.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//

#include <iostream>
#include "ClientSocket.cpp"

#define DEFAULT_PORT "6000"
#define DEFAULT_SERVER_IP "127.0.0.1"

int main()
{
	std::cout << "Hello World!\n";

	ClientSocket clientSocket;
	if (!clientSocket.Init(DEFAULT_SERVER_IP, DEFAULT_PORT))
		return 1;

	if (!clientSocket.Send("Hello!, this is client"))
		return 1;

	if (!clientSocket.Receive())
		return 1;

	if (!clientSocket.Shutdown())
		return 1;

	return 0;
}

